<template>
    <div class="ViewBulletin">
        <h2>通知查看</h2>
        <div class="operatingBox">
            <div class="operating">
                <el-button type="info" icon="el-icon-arrow-left" size="small" @click="goBackLi">返回</el-button>
                <el-button type="primary" icon="el-icon-printer" size="small">打印</el-button>

            </div>
            <hr>
            <div class="bul">
                <div class="bulContent">
                    <span class="content">1111111</span>
                    <span class="sender">发布：总医院</span>
                    <div class="date">
                        <span>{{nowTime}}</span>
                    </div>
                </div>
            </div>
            <div class="bul">
                <div class="bulContent">
                    <span class="content">1111111</span>
                    <span class="sender">发布：总医院</span>
                    <div class="date">
                        <span>{{nowTime}}</span>
                    </div>
                </div>
            </div>
            <div class="v-btn">
             
                    <el-button class="v-btn-a"  icon="el-icon-arrow-left" size="small" @click="goBackLi">返回</el-button>
                
            </div>

        </div>

</div>
</template>

<script>
import dayjs from 'dayjs';
export default {
    name: 'ViewBulletin',

    data() {
        return {
          nowTime:'',
        };
    },
 
    created(){
          this.nowTime=dayjs(new Date()).format('YYYY/MM/DD HH:mm:ss')
    },

    mounted() {

    },

    methods: {

        //返回按钮
        goBackLi() {
            this.$router.push("/pubNotice/pubList")
        }
    },
};
</script>

<style scoped>
h2 {
    margin: 15px;

}

.operatingBox {
    background-color: white;
    margin: 10px;
    display: flex;
    flex-direction: column;

    align-items: self-start;
    border-top: 3px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-radius: 5px;
}

.operating {
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: 10px;
    margin-right: 10px;
}

.bul{
    width: 100%;
    height: 80px;
    border-top: 1px solid #ccc;
}

.bulContent {
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
}

.content {
    margin-top: 30px;
    font-size: 20px;
}

.sender {
    font-size: 12px;
    color: rgb(174, 172, 172);
}
.date{
    margin-right: 10px;
    display: flex;
    justify-content: flex-end;
    color: rgb(174, 172, 172);
}
.v-btn{
    width: 100%;
    height: 50px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}
.v-btn-a{
    margin: 10px;
    background-color: rgb(237, 235, 235);
}
.v-btn-a.is-active, .v-btn-a:active {
    background: #dfdfdf;
    border-color: #d6d7d8;
    color: #FFF;
}
.v-btn-a:hover {
    background: #dfdfdf;
    border-color: #d6d7d8;
    color: #FFF;
}
</style>